package com.jbinfo.qingcaowan.exam.entity;

import java.util.List;

public class ExamQuestion {
    private String id;

    private String examCircle;
    
    private String questionContent;
//    exam_order, type, question_content, remark, question_score, resolve, 
//    book_id, chapter_id, org_id
    private Integer questionScore;

    private String type;

    private String remark;

    private Integer examOrder;
    
    private String createBy;
    
    private String resolve; //  问题解析
    
    private String bookId; //
    
    private String chapterId; //
    
    private String orgId; //
    
    private List<ExamChooseAnswer> chooseAnswerList;

    public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getExamCircle() {
        return examCircle;
    }

    public void setExamCircle(String examCircle) {
        this.examCircle = examCircle == null ? null : examCircle.trim();
    }

    public String getQuestionContent() {
        return questionContent;
    }

    public void setQuestionContent(String questionContent) {
        this.questionContent = questionContent == null ? null : questionContent.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getExamOrder() {
        return examOrder;
    }

    public void setExamOrder(Integer examOrder) {
        this.examOrder = examOrder;
    }

    public List<ExamChooseAnswer> getChooseAnswerList() {
		return chooseAnswerList;
	}

	public void setChooseAnswerList(List<ExamChooseAnswer> chooseAnswerList) {
		this.chooseAnswerList = chooseAnswerList;
	}

	public Integer getQuestionScore() {
		return questionScore;
	}

	public void setQuestionScore(Integer questionScore) {
		this.questionScore = questionScore;
	}

	public String getResolve() {
		return resolve;
	}

	public void setResolve(String resolve) {
		this.resolve = resolve;
	}

	public String getBookId() {
		return bookId;
	}

	public void setBookId(String bookId) {
		this.bookId = bookId;
	}

	public String getChapterId() {
		return chapterId;
	}

	public void setChapterId(String chapterId) {
		this.chapterId = chapterId;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((bookId == null) ? 0 : bookId.hashCode());
		result = prime * result + ((chapterId == null) ? 0 : chapterId.hashCode());
		result = prime * result + ((chooseAnswerList == null) ? 0 : chooseAnswerList.hashCode());
		result = prime * result + ((createBy == null) ? 0 : createBy.hashCode());
		result = prime * result + ((examCircle == null) ? 0 : examCircle.hashCode());
		result = prime * result + ((examOrder == null) ? 0 : examOrder.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((orgId == null) ? 0 : orgId.hashCode());
		result = prime * result + ((questionContent == null) ? 0 : questionContent.hashCode());
		result = prime * result + ((questionScore == null) ? 0 : questionScore.hashCode());
		result = prime * result + ((remark == null) ? 0 : remark.hashCode());
		result = prime * result + ((resolve == null) ? 0 : resolve.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ExamQuestion other = (ExamQuestion) obj;
		if (bookId == null) {
			if (other.bookId != null)
				return false;
		} else if (!bookId.equals(other.bookId))
			return false;
		if (chapterId == null) {
			if (other.chapterId != null)
				return false;
		} else if (!chapterId.equals(other.chapterId))
			return false;
		if (chooseAnswerList == null) {
			if (other.chooseAnswerList != null)
				return false;
		} else if (!chooseAnswerList.equals(other.chooseAnswerList))
			return false;
		if (createBy == null) {
			if (other.createBy != null)
				return false;
		} else if (!createBy.equals(other.createBy))
			return false;
		if (examCircle == null) {
			if (other.examCircle != null)
				return false;
		} else if (!examCircle.equals(other.examCircle))
			return false;
		if (examOrder == null) {
			if (other.examOrder != null)
				return false;
		} else if (!examOrder.equals(other.examOrder))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (orgId == null) {
			if (other.orgId != null)
				return false;
		} else if (!orgId.equals(other.orgId))
			return false;
		if (questionContent == null) {
			if (other.questionContent != null)
				return false;
		} else if (!questionContent.equals(other.questionContent))
			return false;
		if (questionScore == null) {
			if (other.questionScore != null)
				return false;
		} else if (!questionScore.equals(other.questionScore))
			return false;
		if (remark == null) {
			if (other.remark != null)
				return false;
		} else if (!remark.equals(other.remark))
			return false;
		if (resolve == null) {
			if (other.resolve != null)
				return false;
		} else if (!resolve.equals(other.resolve))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ExamQuestion [id=" + id + ", examCircle=" + examCircle + ", questionContent=" + questionContent
				+ ", questionScore=" + questionScore + ", type=" + type + ", remark=" + remark + ", examOrder="
				+ examOrder + ", createBy=" + createBy + ", resolve=" + resolve + ", bookId=" + bookId + ", chapterId="
				+ chapterId + ", orgId=" + orgId + ", chooseAnswerList=" + chooseAnswerList + "]";
	}

}